<script setup lang="ts">
import DictList from '@/views/sys/admin/dict/father/list/index.vue'
import DictEdit from '@/views/sys/admin/dict/father/edit/index.vue'
import DictAdd from '@/views/sys/admin/dict/father/add/index.vue'
import DictSonList from '@/views/sys/admin/dict/son/list/index.vue'
import DictSonEdit from '@/views/sys/admin/dict/son/edit/index.vue'
import DictSonAdd from '@/views/sys/admin/dict/son/add/index.vue'
import {useDictSonViewStore} from "@/store/views/sys/admin/dictSonStore";

const store = useDictSonViewStore()
const {sonDictVisible} = storeToRefs(store)
</script>
<template>
  <el-row>
    <el-col :sm="24" :lg="sonDictVisible?12:24">
      <!--  字典list: 搜索+列表+分页+重置密码-->
      <DictList/>
      <!-- 字典编辑对话框:编辑字典 -->
      <DictEdit/>
      <!-- 字典添加对话框:添加字典 -->
      <DictAdd/>
    </el-col>
    <el-col :sm="24" :lg="12" v-show="sonDictVisible">
      <DictSonList/>
      <DictSonEdit/>
      <DictSonAdd/>
    </el-col>
  </el-row>
</template>
<style scoped>
</style>